<?php
/**
 * ----------------------------------------
 * @link http://www.ruaby.com/
 * @copyright Copyright (c) 2016 RuabySoft
 * @license http://www.ruaby.com/license/
 *
 * @author 18/8/31 下午9:47
 */


/**
 * 启动应用
 */
$app = new \Zeke\Zee\App(realpath(__DIR__.'/'));


// http server
$app->singleton(
    \Zeke\Contracts\Net\Http\Server\Kernel::class,
    \Zeke\Net\Http\Server::class
);


$app->singleton(
    \Zeke\Contracts\Io\Loop\LoopContract::class,
    \Zeke\Io\Loop\Select::class
);


$app->bind(
    \Zeke\Contracts\Io\Socket\ServerContract::class,
    \Zeke\Io\Socket\Server::class
);

return $app;